
<div class="layui-form-item w500">
	<label class="layui-form-label">网站名称</label>
	<div class="layui-input-block">
		<input type="text" name="site_seting.sitename" value="${site_seting.sitename!'' }" lay-verify="required" autocomplete="off" class="layui-input" />
	</div>
</div>

<div class="layui-form-item w500">
	<label class="layui-form-label">网站标题</label>
	<div class="layui-input-block">
		<input type="text" name="site_seting.title" value="${site_seting.title!'' }" autocomplete="off" class="layui-input" />
	</div>
</div>

<div class="layui-form-item w500">
	<label class="layui-form-label">关键字</label>
	<div class="layui-input-block">
		<input type="text" name="site_seting.keywords" value="${site_seting.keywords!'' }" autocomplete="off" class="layui-input" />
	</div>
</div>

<div class="layui-form-item w500">
	<label class="layui-form-label">描述</label>
	<div class="layui-input-block">
		<textarea name="site_seting.descript" placeholder="请输入内容" class="layui-textarea">${site_seting.descript!''}</textarea>
	</div>
</div>

<div class="layui-form-item w500">
	<label class="layui-form-label">LOGO</label>
	<div class="layui-input-block">
		<@image src="${site_seting.logofile!'' }" id="logofile" style='width:100px' /><br/>
		<input type="hidden" id="logofile_url" name="site_seting.logofile" value="${site_seting.logofile!'' }" >
		<input name="file" class="layui-upload-file" type="file" id="uploadLogoBtn" > 
	</div>
</div>


<div class="layui-form-item w500">
	<label class="layui-form-label">关闭站点</label>
	<div class="layui-input-block">
		<input type="radio" name="site_seting.siteon"   value="1" title="否" <#if site_seting.siteon=="1">checked="checked"</#if> />&nbsp;&nbsp;&nbsp;&nbsp;
		<input type="radio" name="site_seting.siteon"   value="0"  title="是" <#if site_seting.siteon=="0">checked="checked"</#if>  />
	</div>
</div>

<div class="layui-form-item w500">
	<label class="layui-form-label">关闭原因</label>
	<div class="layui-input-block">
		<textarea name="site_seting.closereson" placeholder="请输入内容" class="layui-textarea">${site_seting.closereson!''}</textarea>
	</div>
</div>

<input type="hidden" name="site_seting.themeid" value="${site_seting.themeid}" />
<input type="hidden" name="site_seting.themepath" value="${site_seting.themepath}" />
<input type="hidden" name="site_seting.adminthemeid" value="${site_seting.adminthemeid}" />

<script>
function getLogoPath(path){
	$("#logofile").attr("src",path);
	
	$("#logofile_url").val(path);
}
$(function(){
	
	$("#uploadLogoBtn").click(function(){
		layui.upload({
		    url: '${ctx}/eop/upload/upload-file.do?ajax=1&subFolder=spec'
		    ,elem: '#uploadLogoBtn' //指定原始元素，默认直接查找class="layui-upload-file"
		    ,method: 'post' //上传接口的http类型
		    ,success: function(res){
		    	logofile.src = res.path;
		    	$("#logofile_url").val(res.path);
		    }
		 });
	}); 
});
</script>
